package tech.dx.springdb.service;

import tech.dx.springdb.entity.CourseCategories;

import java.util.Optional;

/**
 * @ClassName CourseCategoriesService
 * @Description TODO
 * @Author daoxuan
 * @Date 2019/4/1 11:03
 * @Version 1.0
 */
public interface CourseCategoriesService {
    Optional<CourseCategories> getById(long id);

    CourseCategories add(CourseCategories ClassType);

    CourseCategories update(CourseCategories ClassType);

    void del(long id);

    boolean isExitById(long id);
}
